package com.bsi.conf;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import org.springframework.web.servlet.support.AbstractDispatcherServletInitializer;

/**
 * @ClassName SpringRunnerConfig
 * @Author LiuSong
 * @Date 2020/8/11 9:59
 * @Version 1.0
 * @Description 配置spring和springmvc启动文件
 */
public class SpringRunnerConfig extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{SpringInitConfig.class,SpringSecurityInit.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{SpringMvcInitConfig.class};
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
